 <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />

<html:html xhtml="true">
    	<head>
            <!-- HTTP 1.1 -->
            <meta http-equiv="Cache-Control" content="no-store"/>
            <!-- HTTP 1.0 -->
            <meta http-equiv="Pragma" content="no-cache"/>
            <!-- Prevents caching at the Proxy Server -->
            <meta http-equiv="Expires" content="0"/>

            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <c:set var="ctxPath" value="${pageContext.request.contextPath}" scope="request"/>

            <atleap:base />

            <tiles:importAttribute ignore="true" />

			<%-- Get list of global Javascripts (scripts used on the most of pages or even on every page) --%>
			<tiles:useAttribute id="layoutScriptList" name="layoutScripts" classname="java.util.List" ignore="true"/>

			<atleap:iterator var="js" items="${layoutScriptList}">
				<script type="text/javascript" src="<atleap:rewriteUrl href="${js}" />"></script>
			</atleap:iterator>

			<%-- Get list of local Javascripts (scripts used on concrete page, built on this layout) --%>
			<tiles:useAttribute id="pageScriptList" name="pageScripts" classname="java.util.List" ignore="true"/>

			<atleap:iterator var="js" items="${pageScriptList}">
				<script type="text/javascript" src="<atleap:rewriteUrl href="${js}" />"></script>
			</atleap:iterator>

			<%-- Get list of global Stylesheets --%>
			<tiles:useAttribute id="layoutStyleList" name="layoutStyles" classname="java.util.List" ignore="true"/>

			<atleap:iterator var="css" items="${layoutStyleList}">
				<link rel="stylesheet" type="text/css" media="all" href="<atleap:rewriteUrl href="${css}" />" />
			</atleap:iterator>

			<%-- Get list of local Stylesheets --%>
			<tiles:useAttribute id="pageStyleList" name="pageStyles" classname="java.util.List" ignore="true"/>

			<atleap:iterator var="css" items="${pageStyleList}">
				<link rel="stylesheet" type="text/css" media="all" href="<atleap:rewriteUrl href="${css}" />" />
			</atleap:iterator>

            <c:if test="${!empty formName}">
                <atleap:javascript dynamicJavascript="true" staticJavascript="false" formName="${formName}" method="validateForm" cdata="false" />
            </c:if>

        </head>
        <body class="filter-Layout">

            <h4><atleap:message key="${headerKey}" /></h4>
            <tiles:insert attribute="filterForm" />
        </body>
</html:html>
 